title: Sitecore: The call is ambiguous between the following methods or properties: 'Sitecore.Data.ID.operator !=(Sitecore.Data.ID, Sitecore.Data.ID)'
body: <p>For the following code: I am getting an error mentioned in subject. </p>
  
  <pre class="lang-cs prettyprint-override"><code>var subsidiariesIdList = new List&lt;ID&gt;();
  
  MultilistField multilistField = newsItem.Fields["Recipient Subsidiaries"];
  foreach (var item in multilistField)
  {
      var data = Sitecore.Data.ID.Parse(item.ToString());
  
      if (data != null) // I am getting error here 
          subsidiariesIdList.Add(data);
  }
  </code></pre>
  
  <p>Here is the complete error text: </p>
  
  <blockquote>
    <p>The call is ambiguous between the following methods or properties: 'Sitecore.Data.ID.operator !=(Sitecore.Data.ID, Sitecore.Data.ID)' and 'Sitecore.Data.ID.operator !=(Sitecore.Data.ID, Sitecore.Data.ShortID)'</p>
  </blockquote>