Implement fromnum_I and tonum_I.