title: cannot implicitly convert type 'System.Threading.tasks.task<Quartz.Scheduler> to <Quartz.IScheduler>
body: <pre><code>public void Start()
      {
  
          ISchedulerFactory schedFact = new  StdSchedulerFactory();
  
          IScheduler sched = schedFact.GetScheduler();
          sched.Start();
  
          IJobDetail job = JobBuilder.Create&lt;EmailJob&gt;()
              .Build();
  
          ITrigger trigger = TriggerBuilder.Create()
            .StartNow()
            .WithSimpleSchedule(x =&gt; x
  
                .WithIntervalInHours(48)
                .RepeatForever())
            .Build();
  
          sched.ScheduleJob(job, trigger);
      }
  </code></pre>
  
  <p>I'm getting error in <code>IScheduler sched = schedFact.GetScheduler();</code></p>
  
  <p>It says </p>
  
  <blockquote>
    <p>"cannot implicitly convert type System.Threading.tasks.task
    Quartz.Scheduler to Quartz.IScheduler"</p>
  </blockquote>