Array casting isn't recursive openscholar/openscholar#3170

Explicitly cast the nested objects we need.