use dynamic cast
or
for example
int a;
char b;
b<int>=a;