Allow ID to be of type long

In the case we have "long" IDs, we should allow for that overload.