CastTo (open)
Cast a value to a specific type
Syntax
// Core function, no LOADLIB necessary
VARIANT FUNCTION CastTo(VARIANT invalue, INTEGER desttype)
Parameters
VARIANT invalue
Value to cast
INTEGER desttype
Destination typeid
Return value
VARIANT
The casted value