Cast individual array elements