Removed an unneeded cast.