Convert units of one type to units of another.