Fixed issue with object casts. Now the method returns an empty array if we recieve...