This is currently failing for me when trying to get `DEMO_MODE`. Since the value wasn't found, `tValue` comes back `null` and it attempts to cast that to `bool`.

I'd recommend throwing the `TryGetValue()` call in an `if` and `return (T) tValue;` if it's successful, otherwise return something like `default(T)`.