Type casting on BaseConfig