How to map with Cast: Boolean

Table Of Contents

  • General description
  • Guide
  • Video guide

General description

The Cast: Boolean mapper converts a value into a boolean (true/false). This Mapper is particularly useful for ensuring consistent data formatting when integrating systems that rely on boolean values for processing.

Fields

N/A

Sample data

Input Output
1 true
0 false
“True” true
“False” false

Guide

Here’s how you can do it!

Step 1: Click on Add Data Transformer.

Step 2: Select Value Mapper.

Step 3: Select Key Accessor from the Accessor drop-down menu.

Step 4: Click on Add Keys and specify the key (or keys) that you want to map.

Step 5: Click on Add Mappers and select Cast: Boolean

Step 6: On clicking the Run Test button, you will see that the Cast: Boolean mapper has mapped the specified key (must be in 0s and 1s) to true/false accordingly.

Video guide