Cast RedisValue to string for JsonSerializer.Deserialize

Proprietary

JsonSerializer.Deserialize<T>(RedisValue) is an ambiguous call (CS0121) because StackExchange.Redis RedisValue implicitly converts to both string and ReadOnlySpan<byte>. Add an explicit (string) cast to disambiguate.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.CastRedisValueForJsonDeserialize
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.CastRedisValueForJsonDeserialize

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.