input: from typing import List
  
  def removeDuplicates(array: List[int]) -> List[int]:
      """
      Optimize the original implementation of removing duplicates from a list to use 
      a more efficient approach with built-in functions.
      
      >>> removeDuplicates([1, 2, 2, 3, 4, 4, 5])
      [1, 2, 3, 4, 5]
      >>> removeDuplicates([10, 10, 20, 30, 30, 40])
      [10, 20, 30, 40]
      """
      return list(set(array))
output:     return list(set(array))