explicit type casts from double for all unit types