# How to convert string to integer

**URL:** <https://community.automationedge.com/t/how-to-convert-string-to-integer/17670>\
**Category:** Process Studio\
**Created:** [February 27, 2026, 1:12pm UTC](https://community.automationedge.com/t/how-to-convert-string-to-integer/17670 "2026-02-27T13:12:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yash\_Ithape](https://avatars.discourse-cdn.com/v4/letter/y/e47c2d/32.png) [@yash\_Ithape](https://community.automationedge.com/u/yash_Ithape)\
**Post date:** [February 27, 2026, 1:12pm UTC](https://community.automationedge.com/t/how-to-convert-string-to-integer/17670/1 "2026-02-27T13:12:06Z")

</div>

while fetching Coronavirus Cases, Deaths, and Recovered from [https://www.worldometers.info/coronavirus/](https://www.worldometers.info/coronavirus/) in my GUI automation workflow , the values are coming as String type—how can I convert them to Integer to perform calculations?

---

<div class="post-metadata">

**Author:** ![AETrainings](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@AETrainings](https://community.automationedge.com/u/AETrainings)\
**Post date:** [March 7, 2026, 10:30am UTC](https://community.automationedge.com/t/how-to-convert-string-to-integer/17670/2 "2026-03-07T10:30:58Z")

</div>

You can do this using the **Rename Field** step.

**Steps:**

1. Add a **Rename Field** step in the workflow.

2. Go to the **Metadata** tab.

3. Select the fields (e.g., _Coronavirus Cases, Deaths, Recovered_) whose data type needs to be changed.

4. Change the **data type from String to Integer**.

---

<div class="post-metadata">

**Author:** ![Pushkraj](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@Pushkraj](https://community.automationedge.com/u/Pushkraj)\
**Post date:** [March 13, 2026, 7:32am UTC](https://community.automationedge.com/t/how-to-convert-string-to-integer/17670/3 "2026-03-13T07:32:25Z")

</div>

Tried this RenameField plugin And from metadata selected the datatype as Integer but still i got this error “Unexpected conversion error while converting value [CoronaCases String] to an Integer“

---

<div class="post-metadata">

**Author:** ![wllmdjngh](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/wllmdjngh/32/952_2.png) [@wllmdjngh](https://community.automationedge.com/u/wllmdjngh)\
**Post date:** [March 13, 2026, 5:21pm UTC](https://community.automationedge.com/t/how-to-convert-string-to-integer/17670/4 "2026-03-13T17:21:22Z")

</div>

Hi Pushkraj.

Be sure that string has no non digit characters and no punctuation
