is possible in some elegant way cast Set of Foo objects cast into Set of IFoo?
I need call method like this:
public Set<Bar> doSomething(Set<IFoo>) { ... }
with Set like this:
private Set<Foo> foos;
where Foo has definition is this:
public class Foo implements IFoo { ... }
When I tried doSomething(Set<IFoo> foos)
I got error Inconvertible type