diff --git a/Sources/ListMonitor.swift b/Sources/ListMonitor.swift index 1750802..b8da0b1 100644 --- a/Sources/ListMonitor.swift +++ b/Sources/ListMonitor.swift @@ -232,7 +232,7 @@ public final class ListMonitor: Hashable { !self.isPendingRefetch || Thread.isMainThread, "Attempted to access a \(cs_typeName(self)) outside the main thread while a refetch is in progress." ) - return self.fetchedResultsController.fetchedObjects?.count ?? 0 + return (self.fetchedResultsController.fetchedObjects as NSArray?)?.count ?? 0 } /**