# How to map with Cast: String

**URL:** <https://forum.alumio.com/t/how-to-map-with-cast-string/265>\
**Category:** Transformers\
**Tags:** mappers\
**Created:** [November 3, 2022, 10:50am UTC](https://forum.alumio.com/t/how-to-map-with-cast-string/265 "2022-11-03T10:50:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alumio\_Bot](https://forum.alumio.com/user_avatar/forum.alumio.com/alumio_bot/32/1824_2.png) [@Alumio\_Bot](https://forum.alumio.com/u/Alumio_Bot)\
**Post date:** [November 3, 2022, 10:50am UTC](https://forum.alumio.com/t/how-to-map-with-cast-string/265/1 "2022-11-03T10:50:41Z")

</div>

### **Table Of Contents**

- General description
- Guide
- Video guide

### **General description**

The Cast: String Mapper converts a value into a string format (e.g., “abc”, “example”). This ensures that all data, regardless of its original type, is represented as a string for consistency and compatibility across systems.

### **Fields**

N/A

### **Sample data**

| **Input** | **Output** |
| --- | --- |
| 20.95 | “20.95” |
| 1 | “1” |
| 0 | “0” |
| true | “1” |
| false | “” |

### **Guide**

Here is how to 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 wish to map from an entity data.

Step 5: Click on Add Mappers and select Cast: String.

Step 6: On clicking the Run Test button, you will see that the Cast: String mapper has mapped the specified key (or keys) to String values.

### **Video guide**

[![](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/1X/4b7dded267d8af9b46fc523ad1e0fb981836a855.jpeg "Mapping: Cast") ](https://www.youtube.com/watch?v=7m6trUoDDc8)
