Casts value to type
String value to cast
Type to cast to as string of 'number', 'boolean', 'object', 'string', 'null', 'delete', 'undefined'
If true, do not throw exceptions, just return value as string Example: castValueToType('1', 'number'); // returns 1
Casts value to type