title: Swift - Passing different enum types for same variable to a class
body: <p>How can I pass different enums types to a same variable, identify its type later and use its raw values to do some operations? </p>
  
  <p>I have two enums <code>Menu1</code> and <code>Menu2</code> of type String. I like to pass an array of enums to another class which shows submenu. I like to pass enum to same variable since I may add another menu in future.</p>