Campbell Ritchie wrote:That isn't a use case. If you want help, we shall want to know what you want to do, and we can't work that out from code.
Stephan van Hulst wrote:Maybe if you explain your actual use-case, then we can suggest something for you.
Stephan van Hulst wrote:I'm with Campbell. It looks like you've grokked why casting in the world of generics is usually a bad idea, but your latest bit of code is probably still not the best solution to whatever it is that you want to achieve.
Tapio Niemela wrote:True, I didn't remember that fact
However, the thing is that in the project I'm working on, I actually want that List of interfaces, not implementations