KAFKA-20760: Fix ClassCastException in KeyValueToTimestampedKeyValueByteStoreAdapter (#22742)