Parse id to integer before returning