MOB-1228 Fixed casting id to int