fn try_convert_to_expected_type<T>( value: T, expected_type: &ConcreteDataType, ) -> Result<JsonValue, Error>where T: Into<JsonValue>,
Helper function to try converting a value to an expected type