Remove unneeded uint casts.