collection.stream() .filter(obj -> obj instanceof ScheduleIntervalContainer) .map(obj -> (ScheduleIntervalContainer) obj)