cast() Operation
Syntax |
| |
---|---|---|
Semantics | Tells the compiler to compile the statement without checking if the variable types correspond. At runtime there are no type checks, and the statement will be executed as it is. This is useful if e.g. an interface call returns an Any parameter or a parameter of abstract type, but you, as a modeler, know the concrete type during development. On the other hand, this operation must be used carefully because it will never throw any error. All assignment statements will compile and will be processed at runtime - regardless of the output. | |
Substitutables |
| An object having a dedicated type. This type is the target type of the operation. |
| An object having any type. This can be a simple type like String, Integer, Float, DateTime, or Array, or any complex type. | |
Examples |
NONE
| |
Error Codes | This operation must be used carefully because it will never throw any error. |
Related Pages: