Skip to main content
Converts fields in source data to their declared types.

Input

FieldDescriptionTypeRequired
dataSourceReference to the source data to cast. A source that resolves to undefined, null, an empty string, 0 or false outputs an empty list in a list action or a foreach step, and an empty object otherwise.stringYes
fieldsDefinitions of the fields to cast. When omitted, the source data passes through unchanged unless it resolves to undefined, null, an empty string, 0 or false.arrayNo

Output

FieldDescriptionTypeRequired
dataThe source data with fields cast to their target types.anyYes