Operator '==' cannot be applied to operands of type 'bool' and 'string' in mvc c# : <p>I am new in MVC C#. I am getting this error, I have checked and found similar which is not going to my error.</p>

<p>The error is - <i>"Operator '==' cannot be applied to operands of type 'bool' and 'string'"</i></p>

<p>The Code is -</p>

<pre><code>List&lt;RptItem&gt; _r2 = _r1.Where(xx =&gt; xx.Value == ("rcat"))
            .Select(xx=&gt;(KeyValuePair&lt;string, string&gt;?)xx)
            .FirstOrDefault();
</code></pre>

<p>Could someone help me, what I need to do.</p>

<p>Thanks</p>
