Remove unnecessary explicit cast.