Added support for typecasting