Cast result to array.