title: Linq: Operator '/' cannot be applied to operands of type 'object' and 'object'
body: <p>I want to divide one value with another. The formula goes like this </p>
  
  <p>If (Job2 =0, 0, Job2/Job1)
  The code i wrote is:</p>
  
  <pre><code> double empJob1Count = empYearMonthGroup
       .Where(x =&gt; x.Row["Job2"] != DBNull.Value)
       .Sum(x =&gt; x.Row.Field&lt;double&gt;("Job2")/ x =&gt; x.Row.Field&lt;double&gt;("Job1"));
  </code></pre>
  
  <p>But getting error, Operator '/' cannot be applied to operands of type 'object' and 'object'. please suggest how can this be done with linq c#?</p>