array cast ke objek php
$object = (object) $array;
Crazy programmer
$object = (object) $array;
$object = json_decode(json_encode($array), FALSE);
$arrayResult = array_map(function($array){
return (object)$array;
}, $yourOrinalArray);
$object = (object)$array;