Remove unneeded cast.