title: SearchResultCollection class: object property value comparison
body: <p>I am having an issue here comparing the value of a SearchResultCollection object's property value with another value. A snippet of my code is seen below:</p>
  <pre><code>foreach (SearchResult result in results)
      {
          result.Properties[&quot;&lt;propertyname&gt;&quot;][0] == &quot;FALSE&quot;
      }
  </code></pre>
  <p>If I leave it at this, I'll get an error saying that &quot;Possible unintended reference comparison; to get a value comparison, cast the left hand side type to string. &quot;</p>
  <p>I know where I messed up, the left hand value is that of the SearchResultCollection type, whereas the the righthand side is a string. How should I go about fixing this so that they are comparable? The value that the property stores is either &quot;TRUE&quot; or &quot;FALSE.&quot;</p>