Cast
Description
Cast converts a value to the specified data type.
Syntax
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
value |
Yes | Any | Value to convert. |
type |
Yes | String | Target data type. |
Notes
Use this function in calculated fields, metric expressions, or query expressions where the function category is supported.
Example
The expression returns the calculated result according to the current query context.