For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
index

CAST() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Converts a value from one data type to another

Syntax​

CAST(expression AS datatype(length))

Parameters​

ParameterDescriptionData TypeRequired
expressionColumn or expression to evaluateAnyYes
as_typeTarget data type for the conversionType nameYes

Notes​

  • Requires CAST(x AS type). Two-arg CAST(x, 'type') is unsupported.

Example​

SELECT
CAST(employee_number AS varchar)
FROM
rippling.employee.Employee
LIMIT
5;