Function castNumberType

  • Safe casts a value to an expected type. First paramter is an example of the expected type. Second parameter is the value to cast.

    Type Parameters

    Parameters

    Returns T