Convert hand to data structure