This method of the Variant Class retrieves the referenced value of a VT_BYREF|VT_ERROR Variant.
public native int getErrorRef();
Returns the Variant object's referenced value, which is converted to a Java integer.
ClassCastException if the Variant is of any other type.