title: The call is ambiguous between the following methods or properties (decimal and double, with rounding)
body: <p>My program cannot determine whether to execute <code>Math.Round</code> as a <code>decimal</code> or a <code>double</code>, but I have no idea how to fix this... Here is my code, though the second to last line is what I am concerned with.</p>
  
  <pre><code> ArrayList topp1 = new ArrayList();
   int toppcount = 0;
   foreach (Control cb in GroupBoxH1T.Controls)
   {
       CheckBox cb1 = cb as CheckBox;
       if (cb1.Checked == true)
       {
            toppcount++;
            topp1.Add(cb1.Text);
       }
    }
  
    if (cbhwchoice.Checked == false)
    {
        ArrayList topp2 = new ArrayList();
        foreach (Control cb in GroupBoxH2T.Controls)
        {
            CheckBox cb1 = cb as CheckBox;
            if (cb1.Checked == true)
            {
                toppcount++;
                topp2.Add(cb1.Text);
            }
        }
  
        toppcount = Math.Round((toppcount/2,MidpointRounding.AwayFromZero);
    }
  </code></pre>