Save int into nullable int column
<p>I am trying to save an integer into a nullable int column only if there is a value</p>

<pre><code>if (user.AssociationID != 0)
{
   int? AssociationID = user.AssociationID;
   currentUser.AssociationID == AssociationID;
}
</code></pre>

<p>I have tried casing currentUser into an int <code>(int?)currentUser.AssociationID</code></p>

<p>I know this has to be terribly simple.  I've googled for the title of the question and am not finding the results I need.  Be nice, I'm a noob.</p>

<p><strong>Error I'm getting:</strong>
Only assignment, call, increment, decrement, and new object expressions can be used as a statement  </p>
