cast rank to string