CsWinRT
CsWinRT copied to clipboard
Question: How to convert `WinRT.IInspectable` to `Windows.Foundation.Collections.IObservableVector`?


Hi @shelllet, do you have a repro/stack of the above code?
Hi @shelllet, do you have a repro/stack of the above code?
it's easy!, https://github.com/shelllet/WinRT_IInspectable
Thanks! It looks like there is a workaround:
var listcast = (IObservableVector<int>)(object)(iis)
We will need to investigate why the direct As<> cast causes an exception.