I was poking around PHPs casting mechanism, and ran into an odd case when casting an array as an object
$o = (object) array(\'1\'=>\'/foo/bar\'); $o =
It appears that the ArrayObject class can access the properties
$a = new ArrayObject($obj); echo $a[0];