Cast

The Cast step converts a value from one type to another — a numeric string to a number,
a date string to a date, a value to a boolean.

Use it when a source system supplies a value in a form a downstream step won't accept: a
conditional that needs a number to compare numerically, or a destination field typed as a
date rather than a string.

Configuration

  1. Choose the source value — a field from a previous step's output, a variable, or a
    literal.
  2. Choose the target type: String, Number, Boolean, Date, Date String, or Array.
  3. The cast value is available to later steps as this step's output.

The editor asks for the Object to Cast and the Data Type to cast it to. The data type is
chosen from your organization's data types with a search box, and View structure shows the
selected type's shape — so this step casts to a defined data type rather than to a primitive.

Notes

  • A cast that can't be performed — a non-numeric string to a number — fails the step. Use
    continue if failed, or guard it with a Conditional, when input quality is unreliable.
  • For bulk type coercion across many fields, a Convert step using a mapping is
    usually the better tool. Cast is for one value at a time.

Did this page help you?