How to use enum values?
<p>I have the following <code>enum</code>:</p>

<pre><code>enum Crank { X = 0, Y = 1 }
</code></pre>

<p>However when I try</p>

<pre><code>if (x == Crank.X)
</code></pre>

<p>I get an error indicating</p>

<pre><code>cannot convert from Crank to int
</code></pre>

<p>Where do i go wrong?</p>