Typecasting array