title: Invalid casting exception on awaiting method call
body: <p>I am getting following exception While awaiting on method below is code.
  Return type of GetData is Task>>
  Also there are few await calls inside GetData function as well</p>
  
  <p>Exception : </p>
  
  <blockquote>
    <p>Unable to cast object of type
    'System.Runtime.CompilerServices.TaskAwaiter<code>1[System.Collections.Generic.List</code>1[System.Collections.Generic.Dictionary`2[System.String,System.String]]]'
    to type 'System.Runtime.CompilerServices.INotifyCompletion'.</p>
  </blockquote>
  
  <p>Code Snippet : </p>
  
  <pre><code>try
  {
     List&lt;Dictionary&lt;string, string&gt;&gt; records = await GetData(param1, param2, param3);
     return records;
  }
  catch (Exception e)
  {
  }
  </code></pre>