v.22.2Improvement

Functions dictGet and dictHas Implicitly Cast Key Argument to Dictionary Key Structure

Functions dictGet, dictHas implicitly cast key argument to dictionary key structure, if they are different. #33672 (Maksim Kita).
Functions dictGet and dictHas now implicitly cast key arguments to the dictionary key structure when their types differ.

Why it matters

This feature improves usability by automatically converting the key arguments to the expected dictionary key format, preventing type mismatch errors and making dictionary lookups more flexible and convenient for users.

How to use it

Users can continue using dictGet and dictHas functions as usual; the key argument will be implicitly cast to the dictionary key structure if necessary without requiring manual type conversion.