Modified typecasting errors