---
schema_version: "1"
id: 0b01acee9e2a42f1299ea131d6f74f57dd01f56fb6da9eb8d438bb47300841bf
title: Convert String
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-builder/latest/toolbox-variable-handling-convert-string.md
canonical_url: https://docs.mulesoft.com/rpa-builder/latest/toolbox-variable-handling-convert-string
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 1f2463a4d317fd174fca921dc187575306b75c28be9563599795c22a63b0cbe5
description: MuleSoft Documentation Site
release: "6.7"
latest: true
---
---
product: RPA Builder
version: 6.7
is-latest-version: true
---

# Convert String

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

This action step converts a given string or variable to any other variable type and makes it
available as a set of new variables.

## Properties

**Conversion Source** The string or variable that is converted.

**Regular Expression** You may define a regular expression to use only a specific part of the given
Conversion Source. For example, if your conversion source is "Price: €200" and you only want to use
the number as an integer variable, you can set the Regular Expression \[0-9\]+ to extract the number
from the conversion source. More information about regular expressions can be found in section
[Using Regular Expressions](https://docs.mulesoft.com/rpa-builder/latest/advanced-concepts-using-regular-expressions).

## Inbound Variables

**Conversion Source** The string or variable that is converted.

**Regular Expression** You may define a regular expression to use only a specific part of the given
Conversion Source. For example, if your conversion source is "Price: €200" and you only want to use
the number as an integer variable, you can set the Regular Expression \[0-9\]+ to extract the number
from the conversion source. More information about regular expressions can be found in section
[Using Regular Expressions](https://docs.mulesoft.com/rpa-builder/latest/advanced-concepts-using-regular-expressions).

## Outbound Variables

**AsBool** The _Conversion Source_ as a logical value (_True_ or _False_). If the input variable is
a number less than ⇐0 or not the string true or True, it returns _False_.

**AsInt** The _Conversion Source_ as an integer number. If the _Conversion Source_ does not contain
a number, 0 is returned; otherwise it will be the first uninterrupted sequential digits from the
_Source_. Decimal places are truncated in the case of floating point numbers.

**AsDouble** The _Conversion Source_ as a floating point number.

**AsString** The _Conversion Source_ as string value.
