cast( typeNumber, value )
Converts a value from its existing type to the specified type.
See also: Casting, typeof(), Delete Data Types
Keyword | Type | Description |
---|---|---|
|
Number (Integer) |
The type to which the value should be cast. This may be retrieved by using typeof(x), where x is a value of the intended type, or referencing a type with 'type!{namespace}type-name' (within single quotes). |
|
Any Type |
The value that should be cast to type typeNumber. |
Any Type
typeof(x)
, where x
is a value of the intended type, or reference a type with type!{namespace}type-name
(within single quotes).cast('type!{http://www.appian.com/ae/types/2009}Integer', 123.4)
returns 123
cast(1, 123.4)
returns 123
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
Real-Time Custom Record Fields | Incompatible | |
Process Reports | Compatible | |
Process Events | Compatible |
cast() Function