transform the value to int