Cannot implicitly convert type 'int' to 'bool'
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/871530/help-converting-type-cannot-implicitly-convert-type-string-to-bool">Help converting type - cannot implicitly convert type ‘string’ to ‘bool’</a>  </p>
</blockquote>



<p>I am very new to the language n I am not a good programmer. This code is giving me error: </p>

<blockquote>
  <p>cannot implicitly convert type int to bool.</p>
</blockquote>

<p>I am not sure what I am doing wrong.
Can some tell me what I am doing wrong. Any help would be appreciated n any recomendation would also help.</p>

<pre><code> using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;

   namespace ConsoleApplication2
   {
     class mysteryVal
  {
   public const int limitOfGuess = 5;

  // Data member
    public int mystVal;
         private int numOfGuess ;
      private randomNumberMagnifier mag = new randomNumberMagnifier();

      public int randomMag(int num)
     {
        return num + mystVal;
      }

     // Instance Constructor
     public mysteryVal()
     {
        mystVal = 0;
         numOfGuess = 0;
            }

           public void game(int user)
          {
              int userInput = user;
               if (numOfGuess &lt; limitOfGuess)
                     {
                  numOfGuess++;
                 if (userInput = mag.randomMagnifier())
                   {
                }
               }

           } 


           }
                } 
</code></pre>
