public String getString (int index) {
        Object object = getObject (index);
        try {
            return (String) object;
        } catch (ClassCastException exception) {
            log.warn ("Cannot cast value type (" + object.getClass ().getName () + ") to String for index (" + index + ")");
        }
        return null;
    }
public String getString ( int index ) { Object object = getObject ( index ) ; try { return ( String ) object ; } catch ( ClassCastException exception ) { log . warn ( "Cannot cast value type (" + object . getClass ( ) . getName ( ) + ") to String for index (" + index + ")" ) ; } return null ; }
Retrieve an indexed element and return it as a String.

@param index An integer value specifying the offset from the beginning of the array.
@return The element as a string, or null if the element is not found (or not a String).