Convert results to array