title: Operator ! cannot be applied to operand of type Task<bool>
body: <p>I have following implementation and added a <code>Async Task&lt;bool&gt;</code> operation in the <code>ChangeDate()</code> method, previously it was just <code>bool</code>. </p>
  
  <p>In the following line <code>if (!ChangeDate())</code></p>
  
  <blockquote>
    <p>Operator ! cannot be applied to operand of type
    Task</p>
  </blockquote>
  
  <pre><code> public DateTime Date
   {
      get { return _date; }
      set
      {
        if (!ChangeDate())
        {
           return;
        }
  
        _date = value.Date;
  
      }
  } 
  
  private async Task&lt;bool&gt; ChangeDate()
  {
    if (IsSave)
    {
       await Mvx.Resolve&lt;IUserDialogs&gt;().ConfirmAsync(new ConfirmConfig
       {
          Message = "Are you sure ?",
          OnConfirm = b =&gt;
          {
              if (b)
              {
                Save();
              }
           }
        });
     }
     return true;
   }
  </code></pre>