cast result to array