Parsing Rails XML on Flex


I'm currently toying with Rails/Flex app and I noticed that even that
Rails returns XML with all type data I still have to do such tedious
things like parseInt(event.result.user.age) in AS.

Perhaps anyone knows if there is a solution to have types automatically
typecasted in Flex?