# How to map with Cast: Integer

**URL:** <https://forum.alumio.com/t/how-to-map-with-cast-integer/264>\
**Category:** Transformers\
**Tags:** mappers\
**Created:** [November 3, 2022, 10:49am UTC](https://forum.alumio.com/t/how-to-map-with-cast-integer/264 "2022-11-03T10:49: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:49am UTC](https://forum.alumio.com/t/how-to-map-with-cast-integer/264/1 "2022-11-03T10:49:41Z")

</div>

### **Table Of Contents**

- General description
- Guide
- Video guide

### **General description**

The Cast: Integer Mapper converts a value into an integer (e.g., 1, 2, 3, 10, 25). This ensures consistent numerical formatting for data processing and compatibility across systems.

### **Fields**

N/A

### **Sample data**

| **Input** | **Output** |
| --- | --- |
| “10” | 10 |
| “250” | 250 |
| 10.55 | 10 |
| “abc” | 0 |

### **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: Integer.

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

### **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)
