Remove incorrect cast.