I have a list of objects:
List<SomeType> myList;
I want to get a list of sub-types available in this list:
List<SomeChildType> myChildList = myList.stream().filter(e -> e instanceof SomeChildType).collect(??????)
I don't know how to collect to obtain the correct list type.