Adds typecast for array items