The common pattern I've seen is to send the 64 bit integer back as a string. So it would be a "numeric string"
But it's usually set wrong by default, and if your IDs are monotonically increasing you'll probably never notice.
Or you could initialize all your tables with the first primary key being 2^32 and only lose one quarter billionth of your legal keyspace.