drop unnecessary casts