Added typecasting feature to the ORM