avoid casts in left hand sides of assignments.