Skip to content

Cast

Description

Cast converts a value to the specified data type.

Syntax

Cast(value, type)

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

Cast(OrderAmount, "DOUBLE")

The expression returns the calculated result according to the current query context.