private static void ValidateDecodedValueIsCorrectForType(ScalarValue value, FastType type) { if (value == null) { return; } type.ValidateValue(value); }