title: Cannot implicitly convert type 'string' to 'int' (CS0029)
body: <p>I'm on my way to learn C# by following the basic training tutorial from Lynda and trying to make some changes on their examples.</p>
  
  <p>I'm stuck on an error that I can't find a solution for on Google.</p>
  
  <blockquote>
    <p>Cannot implicitly convert type 'string' to 'int' (CS0029)</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>namespace l2
  {
      class Program
      {   
          public static void Main(string[] args)
          {
              int arg;
              arg = Console.ReadLine();
              int result1;
  
              result1 = formula(arg);
              Console.WriteLine("the result is {0}",result1);
              Console.ReadKey();
          }
          static int formula (int theVal){
              return (theVal * 2 + 15);
          }
          }
      }
  </code></pre>
  
  <p>I really don't understand why I get that error. My function is getting an int, the arg that I want to get from console is also an int. Where is the string that the compiler is talking about? :)</p>