From http://stackoverflow.com/questions/14686682/cannot-use-object-of-type-stdclass-as-array-magento magento stdclass 返回由 obj 指定的对象中定义的属性组成的关联数组。 http://php.net/manual/zh/function.get-object-vars.php
$array = get_object_vars($object);