I return COM object in C# from C++ COM library. The object has a property that returns the type C# - "object". The documentation indicated that its type is a "Variant"(in C++) and contains one-dimensional array of three "double" values. After making the cast,
Object obj = m.TextPosition; // "m" - is com object
var d3 = (System.Double[])obj;// cast
I get the error: "Unable to cast object of type 'System.Double[*]' to type 'System.Double[]'.
How to solve this problem?