Cast as whatever type you want (and makes sense...). By concatenating, you're implicitly casting to string, so
$value = (string) $xml->someNode->innerNode;
1.4m articles
1.4m replys
5 comments
57.0k users