code: def vector(vect_in):
      
      if isinstance(vect_in, cadquery.Vector):
          return vect_in
      elif isinstance(vect_in, (tuple, list)):
          return cadquery.Vector(vect_in)
  
      raise CastingError(
          "Cannot cast object type of {!r} to a vector".format(vect_in)
      )
docs: :return: cadquery.Vector instance