Cast

This node allows you to create a list of objects with a selected schema.

This node lets you cast (transform) one type of data into another. For example it lets you transform a number into a string or vice versa or transform a JSON string into a JSON object.

 

Example

Let’s say you have a metric as a number, i.e. a spend of 25 and you want to use this information to parse a message for Slack with a Replace String or List String node. If you just try passing the number to the Replace String node, it will cause an error, because the value input expects a string input and not a number.

If we cast the number to a string before passing it to the Replace String node, everything will work as expected.

Notion image
 
 

Input Fields

field
schema
explanation
data
any
The data that should be casted.
pointer
string
Empty per default, if an object is passed into data, the pointer is used to specify the data to be casted.
type
list
Choose the type of data that the input data should be casted to.

Output Fields

field
schema
explanation
data
any
Did this answer your question?
😞
😐
🤩

Last updated on February 6, 2023