public <T> T getValue(Class<T> clazz) {
        if (this.cellValue == null) {
            return null;
        } else {
            if(Number.class.isAssignableFrom(cellValue.getClass())){
                return null;
            }else{
                return (T) this.cellValue;
            }

        }
    }
public < T > T getValue ( Class < T > clazz ) { if ( this . cellValue == null ) { return null ; } else { if ( Number . class . isAssignableFrom ( cellValue . getClass ( ) ) ) { return null ; } else { return ( T ) this . cellValue ; } } }
Returns the cell value casted to the specified class.

@param clazz the expected class
@param <T>   the return type
@return the cell value casted to the specified class