Could you give us more of your above C++ and Sk code so we have an idea of which classes and methods you are working in and with?
I’m not sure how you got to
target in your Sk code above - the parser sees it as having an interesting class type.
You might be wanting to use
item.same?(target) which tests to see if it is the same object in memory (same pointer/reference) rather than
item = target which tests if objects are logically equivalent.