Function convertToIntegerModel