Remove superfluous double casts.