Casting rank to Number.