Cannot implicitly convert type 'int' to 'System.Threading.Tasks.Task<int>' Code Example
Cannot implicitly convert type 'int' to 'System.Threading.Tasks.Task'
int count;
// use Task.FromResult with retuned value
return Task.FromResult(count);
// Or make your method async, and await the returned value
private async Task ReturnInterger(){}
// Or take care of it while declaring the variable
var count = Task;