I'm making versions of a method for both Collection and Sequence. All the objects I'm testing on are some form of Collection, which means I use AnySequence(x) any time I want to call the Sequence version for testing. Is there an easier way like "as Sequence" or "x.(Sequence.myAwesomeMethod)(...)" or something else I missed?
I just want to avoid the hit of AnySequence if I don't have to.
This is unfortunately the best answer right now for protocols, and it only works if the method in question is not a protocol requirement. (Same for the AnySequence trick, though.)