This ties into a recent post I made on the NI Forum HERE.
I have already run into this problem a few times.
Somewhere in my code I have a process returning an object of a particular class which does not have the exact same type as a dynamic dispatch input. My post above shows a workaround for this (which, if it wasn't so horrible it'd be funny).
I've run into similar problems where the object is being passed via Queue or Event where I have to pass the Objects as a parent class to enable portability but where I KNOW the only source of the data is a VI sending an object of EXACTLY THE SAME TYPE as the dynamic dispatch input.
A normal "to more specific class" does not work presumably because the resulting object COULD be a further sibling of the required object, thus breaking any dynamic dispatch tables.
Up to now I've had to write a class member to take the existing object and another object of type parent and make a cast and update the values manually which is really annoying because it requires each and every child class to implement this (and make use of the parent function).
So what I'd like is a function to allow an EXACT cast of an LVOOP object so that I can still satisfy the Dynamic Dispatch requirements without having to have a piece of code for each and every child class created. If the Object classes don't match EXACTLY, return an error and the contents of the object used for the cast.
Shane.