After Upgrading MongoDB 3.6 to 5.0 facing issue while updating doc in collection (Expression not supported: Convert(p.Active))

Hi Team,

I am facing issue while upgrading MongoDB from 3.6 to 5.0 in query. I updated Dot Net driver as well .
Expression not supported: Convert(p.Active)


public Task UpdateAsync(IFilterExpression filter, IUpdateExpression updates)
return UpdateAsync(dbCollectionName, filter, updates);