class_docstr: Factory methods for common type conversion functions for `Param.typeConverter`.
  
  .. versionadded:: 2.0.0
docstr: Convert a value to list of floats, if possible.
docstr_tok: ["Convert","a","value","to","list","of","floats",",","if","possible","."]
code: def toListFloat(value: Any) -> List[float]:
      """
      Convert a value to list of floats, if possible.
      """
      if TypeConverters._can_convert_to_list(value):
          value = TypeConverters.toList(value)
          if all(map(lambda v: TypeConverters._is_numeric(v), value)):
              return [float(v) for v in value]
      raise TypeError("Could not convert %s to list of floats" % value)
  
imports: import array
  from abc import ABCMeta
  import copy
  from typing import Any, Callable, Generic, List, Optional, overload, TypeVar, Union, TYPE_CHECKING
  import numpy
  from py4j.java_gateway import JavaObject
  from pyspark.ml.linalg import DenseVector, Vector, Matrix
  from pyspark.ml.util import Identifiable
label_desc: Use image node_id 7 for calling the TypeConverters obj's underlying member method code with example usage: obj.toListFloat(value) and returns: unknown