CAST
Deprecated version
This document refers to a deprecated version of the RQL programming language.
Please go here for documentation related to the latest supported version.
Any expression can be casted at runtime to another type, causing a runtime error if casting is not allowed.
Syntax
CAST(<expression> AS <type>)
Example
v: any := 1;
CAST(v AS INT) // 1
CAST(v AS INTERVAL) // Runtime error!