fix strict typing
convert stdclass to array