Cast ConfigObject to bool for fast tests in if statemenets