c to swift structure convert