I am migrating application from net core 2.2 to 3.1. In that I am using ToSql extension method. This method throws Casting exception message, unable to cast SQLParameterExpressi