How can I compare an integer to the value I get from an enum?
<p>I have the following method and enum:</p>

<pre><code>public int GetRowType(string pk) 
    {
        return Convert.ToInt32(pk.Substring(2, 2));
    }


public enum CONTENT {
    Menu = 0,
    Article = 1,
    FavoritesList = 2,
    ContentBlock = 3,
    Topic = 6,
    List = 7
};
</code></pre>

<p>Here I am trying to check if the result of my method is equal to the value of the enum but I am getting an error:</p>

<pre><code>GetRowType(content) == CONTENT.Topic
</code></pre>

<p>Can someone give me some advice on what I am doing wrong?</p>

<pre><code>Gives me an error: Error    2   
Operator '==' cannot be applied to operands of type 'int' and 'Storage.Constants.CONTENT'
</code></pre>
