title: how to convert Array[org.apache.spark.sql.Row] to Array[Int]
body: <p>I'm trying to convert Array[Row] to Array[Int] but in vain. Appreciate some help</p>
  
  <pre><code>scala&gt; res17(0).toInt
  &lt;console&gt;:30: error: value toInt is not a member of org.apache.spark.sql.Row
            res17(0).toInt
                     ^
  
  scala&gt; res17(0)
  res28: org.apache.spark.sql.Row = [1,0]
  
  scala&gt; res17(0).toArray
  &lt;console&gt;:30: error: value toArray is not a member of org.apache.spark.sql.Row
            res17(0).toArray
                     ^
  
  scala&gt; res17
  res30: Array[org.apache.spark.sql.Row] = Array([1,0])
  </code></pre>