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

# 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/6.6/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/6.6/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.
