Typecasting of integer to character

i was typecasting anumber into a character like (char)number but that is not working?