typecast units. don't treat '%' as a unit