tidy up unnecessary type coercions.