convert returned id to number

done for [AGIOS-53](https://issues.jboss.org/browse/AGIOS-53)