public static int convertObjectToInt(Object value) {
		if (value != null) {
			if (value instanceof Integer) {
				return ((Integer) value).intValue();
			} else {
				return Integer.valueOf(value.toString()).intValue();
			}
		} else {
			throw new NullPointerException("Property value was null so it couldn't be converted to an int.");
		}
	}