diff --git a/BTCPayServer/HostedServices/NotificationDbSaver.cs b/BTCPayServer/HostedServices/NotificationDbSaver.cs index 49c716e4c..4eb76ad97 100644 --- a/BTCPayServer/HostedServices/NotificationDbSaver.cs +++ b/BTCPayServer/HostedServices/NotificationDbSaver.cs @@ -30,7 +30,7 @@ namespace BTCPayServer.HostedServices protected override async Task ProcessEvent(object evt, CancellationToken cancellationToken) { - var casted = evt as NotificationEvent; + var casted = (NotificationEvent)evt; using (var db = _ContextFactory.CreateContext()) { foreach (var uid in casted.ApplicationUserIds)