Use switch expressions in yang-data-util