BUG: Make lib.maybe_convert_objects work with uint64

Fixes #4471.

Only  when it's greater than uint64 max (and not negative, etc.)