|n||The value to convert.|
This function will attempt to convert a given value into a
pointer data type, where the value must be either a real, a
string, an int64, an int32, or a ptr. Anything else will cause the
game to crash with an error message.
val = ptr(application_surface);
The above code checks the variable "val" to see if it contains a pointer and if it does not then one is assigned to it.