title: Cannot convert from 'int' to 'System.func<int>'
body: <p>I am trying to implement asynchronous programming into my windows forms app, and am receiving this error message when trying to return the task. I do not know how to convert an 'int' to a 'System.Func'. </p>
  
  <p>I am returning an int instead of a bool because when i try to return the bool, I get an error stating asynchronous methods have to return an int or a task.</p>
  
  <pre><code>private async void Button1_Click(object sender, EventArgs e)
  {
      Task&lt;int&gt; task = new Task&lt;int&gt;(CheckForFiles());
      task.Start();
      label1.Text = "Checking for file...";
      int FilesPresent = await task;
      if (FilesPresent == 1)
      {
          label1.Text = "file present";
      }
      else
      {
          label1.Text = "file missing";
      }
  
  }
  
  private int CheckForFiles()
  {
      int fileExists = 0;
      bool result = File.Exists(@"FileLocation");
  
      if (result == true)
      {
          fileExists = 1;
      }
      else
      {
          fileExists = 0;
      }
      return (fileExists);
  }
  </code></pre>
  
  <p>I expect to be able to update this method to allow for asynchronous programming to function successfully</p>