diff --git a/FormHelper/Settings/UserSettingsManager.cs b/FormHelper/Settings/UserSettingsManager.cs index 98c74ab..ef85dd4 100644 --- a/FormHelper/Settings/UserSettingsManager.cs +++ b/FormHelper/Settings/UserSettingsManager.cs @@ -425,7 +425,8 @@ public object this[string name] public T Get(string name) { var setting = _settings.FirstOrDefault(s => s.Name == name)?.Value; - return (T) setting; + var retval = Convert.ChangeType(setting, typeof(T)); + return (T) retval; } override public string ToString()