public Integer getInt(int index) {
        Number n = (Number) content.get(index);
        if (n == null) {
            return null;
        } else if (n instanceof Integer) {
            return (Integer) n;
        } else {
            return n.intValue(); //autoboxing to Integer
        }
    }
public Integer getInt ( int index ) { Number n = ( Number ) content . get ( index ) ; if ( n == null ) { return null ; } else if ( n instanceof Integer ) { return ( Integer ) n ; } else { return n . intValue ( ) ; } }
Retrieves the value by the position in the {@link JsonArray} and casts it to {@link Integer}.

Note that if value was stored as another numerical type, some truncation or rounding may occur.

@param index the index of the value.
@return the value at index.
@throws IndexOutOfBoundsException if the index is negative or too large.