convert nrich API output ids to ints instead of strings