cast to int and reverse