Implement to_ulong() and to_ullong().