I am trying to cast an object to array, to use its protected properties. Unfortunately, the array keys contain some wierd looking question marks so I cannot use these values in