take an array of ids, and convert them to an integer id. Handy if you want to put things into a sparse array.
id2intid()