cast rdd to array for scorer