Casts an instance to another type while preserving the original.
Syntax
1
cast_new(id, new_type)
Argument | Type | Description |
---|---|---|
id | double | The id of the instance to convert. |
new_type | string | The type to convert the instance to. |
Returns: Instance Id
Description
This function casts an instance to another type while preserving the original.