Some part of code where taken from https://community.dynamics.com/ax/f/33/t/86432
I was looking for this little piece of code for too long to let it go.
So pretty much this code can be helpful. Enjoy
DictEnum dictEnum = new DictEnum(enumName2Id(“NoYes”));
info(int2str(dictEnum.name2value(“No”)));//<– that is label, not the name of the field