# Cast to string transform function

## Introduction

The **cast to string** transform function is used to change the data type associated with a source field from `number` to `string`. For example, you might have an `id` field in a source system that's  stored as `string` value, but your destination system expects the `id` to be a `number`.

## Adding a cast to string transform

**Step 1**\
In your process flow, access settings for your map shape:

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FMJ0uFKnEdEv40l4D7WZZ%2Freplace%20transform%200.png?alt=media&#x26;token=621d3646-b89f-4383-899f-33462b8698ea" alt="" width="275"><figcaption></figcaption></figure></div>

**Step 2**\
Select the **add transform** button for the required mapping rule - for example:

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FFxux95XTFBkq4SADyIm5%2Freplace%20transform%201.png?alt=media&#x26;token=874f99cc-5d29-4ee8-ad83-f048d6909237" alt="" width="375"><figcaption></figcaption></figure></div>

**Step 3**\
Click the **add transform** button:

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FQANVCDb8TeHqq9goVe6J%2Freplace%20transform%202.png?alt=media&#x26;token=da01cae6-c482-407c-ac3d-16182205b12f" alt="" width="375"><figcaption></figcaption></figure></div>

**Step 4**\
Click in the **name** field to access a list of all available transform functions, then select **cast to string** from the **number** category:

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FfkQNUSoY2sdChr4si8Ma%2Fcast%20to%20string%201.png?alt=media&#x26;token=aa707212-59d2-4002-9ab2-5c685521d2d9" alt="" width="375"><figcaption></figcaption></figure></div>

**Step 5**\
Click the **add field** button:

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FLSlG7koqblHYGvNB97OX%2Fcast%20to%20string%202.png?alt=media&#x26;token=2127b852-fe0d-4743-b91a-68ab24a3315f" alt="" width="375"><figcaption></figcaption></figure></div>

**Step 6**\
Click in **source fields** and select the source field to be used for this transform:

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FhD9dBLMute4m3K27hcu3%2Fcast%20to%20string%203.png?alt=media&#x26;token=0c012240-9068-4a66-8ad7-27b5820c41cf" alt="" width="375"><figcaption></figcaption></figure></div>

**Step 7**\
Accept your changes (twice).

**Step 8**\
Save the transform. You'll notice that the transform icon is updated to indicate that a transform function is present for the mapping row - for example:

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FdR0IAeIOagMrlT1o3fsi%2Freplace%20transform%207%20transform%20added.png?alt=media&#x26;token=7aea61a3-d975-49c4-9d99-33cc83ff7195" alt="" width="375"><figcaption></figcaption></figure></div>
