public int getIntValue() {
            if (value instanceof Integer) {
                return ((Integer)value);
            }
            else {
                return -1;
            }
        }
Returns the value as an int, or a negative value if it is not an integer
config-model/src/main/java/com/yahoo/schema/RankProfile.java