Im using Spark 2.0. I have a column of my dataframe containing a WrappedArray of WrappedArrays of Float.
WrappedArray
An example of a row would be:
Following @sami-badawi 's answer I am posting the answer for those like me who started from a dataframe.
dataframe.select("mycolumn").rdd.map (row => row.get(0).asInstanceOf[WrappedArray[WrappedArray[Float]]].array.map(x=>x.toArray))