Casts an instance to another type.
Syntax
1
cast(id, new_type)
Argument | Type | Description |
---|---|---|
id | double | The id of the instance to convert. |
new_type | string | The name of the type to convert the instance to. |
Returns: Instance Id
Description
This function casts an instance to another type. It returns the id passed into the function.