Fixed formatting in comparison after casting