Well, I think you're going to end up doing it yourself one way or the other, but if you could do it with a String object as an input, I don't see why you can't do it with an int value as an input.
...