Remove redundant cast.