getId() should return integer if key is integer