Convert
Converting objects to different types.
Function
Returns
Description
ToFloat(value: object)
float
Convert the value to floating type
ToInt(value: object)
int
Convert the value to integer type
ToBool(value: object)
bool
Convert the value to boolean type
ToString(value: object)
string
Convert the value to string type
IsFloat(value: object)
bool
Returns true if the object is a float.
IsInt(value: object)
bool
Returns true if the object is an int.
IsBool(value: object)
bool
Returns true if the object is a bool.
IsString(value: object)
bool
Returns true if the object is a string.
IsObject(value: object)
bool
Returns true if the object is an Object. You can use value.Type for further type checking.
Last updated