With this Action Script 3 class you can convert complex XML structures to Object instances, transforming any attribute or node value to Boolean or Number values if applicable. It's not necessary to cast the values manually . It gives you the possibility to parse only the first level of the input XML or the entire tree.