Fixed array cast to use php <= 5.3 syntax