demo of typecasting