cast to array