# Does Flash know a function like TypeCast?

**URL:** <https://forum.kirupa.com/t/does-flash-know-a-function-like-typecast/89630>\
**Category:** flash\
**Created:** [May 10, 2005, 7:33am UTC](https://forum.kirupa.com/t/does-flash-know-a-function-like-typecast/89630 "2005-05-10T07:33:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moonless\_planet](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/moonless_planet/32/865_2.png) [@moonless\_planet](https://forum.kirupa.com/u/moonless_planet)\
**Post date:** [May 10, 2005, 7:33am UTC](https://forum.kirupa.com/t/does-flash-know-a-function-like-typecast/89630/1 "2005-05-10T07:33:21Z")

</div>

I need to add values in a string (they’re strings because I get a date as timestamp from a database and then pluck it apart in Flash with substring). Flash doesn’t do math with strings. (doh!) So is there a way to cast the string into an integer value?
