Adds typecasting.