i'm not sure this is the right place for checks like this. i think we should assume that if a config is present it has correct type etc, and just do a 

`my_value = config.get(key, default)` here

it should be the responsibility of whatever we settle on for config management to enforce types etc