I am trying to get list of Long from list of maps using Stream API.

This is how class looks like:

```
class Report Bean{
   private MarshallableMap data;
}

```

Object data contains records like this: ("ID", 1), ("Name", "TestName").

I need to get list of IDs from list of ReportBeans. 
This is what I've tried:

```
 List<Long> ids = reportBeans.stream().flatMap(
                    m -> m.getData().entrySet().stream()
                            .filter(e -> e.getKey().equals("ID"))
                            .map(Map.Entry::getValue)
                            .map(Long.class::cast))
                            .collect(Collectors.toList());

```

I am getting empty list. Please, I need advice. Thank you