title: Errors when using quicksort to sort a double
body: <p>I have a string array that I convert to double, I pass it into the following quicksort algorithm and get multiple errors saying I cannot onvert double to int despite having a double array. Left and right are 0 and arr.Length - 1 respectively.</p>
  
  <pre><code>public static double[] quick_Sort(double[] arr, double left, double right)
      {
  
              double i, j;
              double pivot, temp;
              i = left;
              j = right;
              pivot = arr[(left + right) / 2];
              do
              {
                  while ((arr[i] &lt; pivot) &amp;&amp; (i &lt; right)) i++;
                  while ((pivot &lt; arr[j]) &amp;&amp; (j &gt; left)) j--;
                  if (i &lt;= j)
                  {
                      temp = arr[i];
                      arr[i] = arr[j];
                      arr[j] = temp;
                      i++;
                      j--;
                  }
              } while (i &lt;= j);
              if (left &lt; j) quick_Sort(arr, left, j);
              if (i &lt; right) quick_Sort(arr, i, right);
  
          return arr;
  
       }
  </code></pre>