Hi I have a std class object with objects in it, when I cast it as an array, only the first level is changed to an array. Is there a why to cast the sub-objects as arrays too?
var_dump($heyo);
object(stdClass)#167 (27) {
["uid"]=> object(stdClass)#166 (1) {
["1"]=> int(15)
var_dump((array)($heyo));
array(27) {
["uid"]=> object(stdClass)#166 (1) {
["1"]=> int(15)