Cast transformer

Converts a various amount of fields seperated by a Comma to a defined data type (Cant Handle Arrays). For Arrays use the CastArray transformer.

Usage Examples:

<cast fields="id_currency" converter="ToInt" nullable="true" />
<cast fields="name,code,symbol" converter="ToString" />

Attributes:

  • fields - List the field names to be converted, separated by a comma.

  • converter - Available Converters/Datatypes ToInt, ToString, ToFloat, ToDatetime, ToArray, ToJson, JsonToArray

  • nullable (optional) - defines if a null values should be converted to the given type or stay null (default: false).