# Convert String to Int

**URL:** https://community.apollographql.com/t/convert-string-to-int/9310
**Category:** Connectors
**Created:** [July 24, 2025, 9:06pm UTC](https://community.apollographql.com/t/convert-string-to-int/9310 "2025-07-24T21:06:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Cameron\_Mayfield](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/cameron_mayfield/32/6212_2.png) [@Cameron\_Mayfield](https://community.apollographql.com/u/Cameron_Mayfield)
#### Post date: [July 24, 2025, 9:06pm UTC](https://community.apollographql.com/t/convert-string-to-int/9310/1 "2025-07-24T21:06:05Z")

</div>

Our legacy REST service has a field that is returned as a String, but it is actually an Int. Other subgraphs refer to this field as an Int. Is there anyway to convert the type?

---

<div class="post-metadata">

### Author: ![Andrew\_McGivery](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/andrew_mcgivery/32/5926_2.png) [@Andrew\_McGivery](https://community.apollographql.com/u/Andrew_McGivery)
#### Post date: [July 25, 2025, 2:47am UTC](https://community.apollographql.com/t/convert-string-to-int/9310/2 "2025-07-25T02:47:41Z")

</div>

Hi there!

We will have a `parseInt` arrow method available in Connect 0.3 which will allow you to parse a string into an integer.

Please reach out to your account rep and we can look at getting you early access to Connect 0.3 when we have a preview available!
