Method for getting Integer from configuration