removing typecasting