Channels with CastAs: Bug, feature or question?

Came across something fishy, that is possibly a bug, question or a missing feature:

I have two data types, that both implement same interface, i want to cast from Channel<MyInterface> to Channel<MyDataType>. So as soon as i connect both channels together using Switch or Cons i can’t cast that channel back to the ones i want using TypeSwitch, or even CastAs. However if i strongly type my Channels they suddenly start to work.

See the example patch for details… CastAsWithChannels.vl (30.6 KB)

3 Likes

Addition to “what seems to be working”

CastAsWithChannelsFix.vl (46.6 KB)

1 Like