Change contactids to array