title: Value of protocol type 'Any' cannot conform to 'Equatable'; only struct/enum/class types can conform to protocols
body: <blockquote>
  <p>Value of protocol type 'Any' cannot conform to 'Equatable'; only struct/enum/class types can conform to protocols</p>
  </blockquote>
  <p>Value is type &quot;ANY&quot; as it can be Int or String. So not able to implement Equatable protocol.</p>
  <pre><code>struct BusinessDetail:Equatable {
      static func == (lhs: BusinessDetail, rhs: BusinessDetail) -&gt; Bool {
          lhs.cellType == rhs.cellType &amp;&amp; lhs.value == rhs.value
      }
      
      let cellType: BusinessDetailCellType
      var value: Any?
  }
  
  enum BusinessDetailCellType:Int {
      case x
      case y
  
      var textValue:String {
          Switch self {
          case x:
              return &quot;x&quot;
          case y:
              return &quot;y&quot;
          }
      }
  }
  </code></pre>