Just typecast it , for an example
$object = new StdClass;
$object->foo = 1;
$object->bar = 2;
Here $object is my object which contain property like foo & bar on next step
$array = (array) $object; // we typecast it & convert to array
var_dump( $array ); // print it using var_dump to show it's type
Out put :
array(2) { ["foo"]=> int(1) ["bar"]=> int(2) }
Here you can see the object will convert to array.
$array = (array) $object; -> use this to convert Object To An Associative Array.