I had this same issue updating Microsoft.Azure.WebJobs.Extensions.EventGrid from version 2 to version 3. The docs here show that the type provided to an EventGrid output binding changed between Extension version 2 and version 3 from Microsoft.Azure.EventGrid.Models.EventGridEvent to Azure.Messaging.EventGrid, so if you're updating that package, you need to update the data type as well.