Inventory_Presser_Addon_Updater::convert_object_to_array()

Some data like sections, banners, and icons are expected to be an associative array, however due to the JSON decoding, they are objects. This method allows us to pass in the object and return an associative array.