cast_new_typeof | Precisamento

cast_new_typeof

Home
functions
constants
json
examples

Casts an instance to the type specified by the first argument, while preserving the original instance.

Syntax

1
cast_new_typeof(id)
Argument Type Description
id double The id of the instance to convert.

Returns: Instance Id

Description

This function casts an instance to the type specified by the first argument, while preserving the original instance. First, load the type to convert the instance to, then call this function.