v.20.4Bug Fix

Fixed Type Conversion in Key Conditions

Fixed incorrect type conversion in key conditions. Fixes #6287. #10791 (Andrew Onyshchuk).