This method of the Variant Class coerces the Variant object to a VT_DISPATCH and returns the coerced result. The results of the coercion are not stored in the Variant.
public native Object toDispatch() throws ClassCastException;
Returns the coerced value that is converted to a Java object.
ClassCastException if the Variant object's type cannot be coerced.