Best effort primitive value conversion to support lossy operations