code: public int getInt(String name) {
  
  		Object value = super.get(name);
  
  		if (value instanceof Integer) {
  			return (Integer) value;
  		}
  
  		if (value == null) {
  			throw new IllegalArgumentException("Setting: '" + name + "', not found!");
  		}
  
  		try {
  			return Integer.parseInt(value.toString());
  		}
  		catch (NumberFormatException e) {
  			throw new IllegalArgumentException("Setting: '" + name + "', can't be converted to integer: '" + value + "'!");
  		}
  	}
docs: Get setting as integer
  
  @param name setting key
  @return setting value as integer
  
  @throws IllegalArgumentException is setting is not present or can not be converted to an integer