Remove useless cast.