What about the default type guessing?
`type_ = type(current_app.config.get(name, value))`