proper type conversion on config values