helper/diff: InstanceState conversion