cannot implicitly convert type to 'system.threading.tasks.task code example

Example 1: 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<int> ReturnInterger(){}

// Or take care of it while declaring the variable
var count = Task<int>;

Example 2: cannot implicitly convert type 'system.threading.tasks.task string ' to 'string' c#

public List<int> TestGetMethod()  
{  
    return GetIdList().Result;  
}