title: Recursive cast from SimpleXMLObject to Array
body: <p>I need to recursively cast a PHP SimpleXMLObject to an array.  The problem is that each sub element is also a PHP SimpleXMLElement.</p>
  
  <p>Is this possible?</p>