Converts the given native object to a config value.
This method will never be called for
null references. Those will always be translated to ConfigValue.Null. If this method returns
null, the IConfigurable.ToConfig method of the native object will be used instead.
The ConfigValue.Cache method must not be called on the returned value.
The default implementation returns
If an unexpected error has occurred while building the config value.