MAXScript will automatically convert its native values to DotNet values and DotNet values to MAXScript values.
In addition, value conversion can be performed explicitly using a dedicated function in 3ds Max 2010 and higher.
The following table shows the native MAXScript value types and the DotNet value types they can be converted to in 3ds Max 9 and higher.
The following table shows the DotNet value types and the native MAXScript value type they are converted to.
The following method performs a conversion of a MAXScript value to a DotNet value.
Available in 3ds Max 2010 and higher.
Returns a dotNetObject value where the MAXScript value passed as first argument is converted to a DotNet object of the type specified by the second argument.
This allows for the easy creation of DotNet arrays from MAXScript arrays: