Operators

as an

Supported By

Syntax

expression as an type

Description

The as an operator converts the given value to the given data type. If the given value cannot be converted to the given data type, a script error is triggered.

Note

To avoid triggering a script error, use the is a operator before trying to convert values.

Synonyms

as, as a

See Also

is a, is not a