Avoid nested switch statements | CAST Appmarq