added optional conversion of value in get_setting()