Well it got a little hosed up as I didn't have some of your type defs, but here is a little fix. I don't know about the int to enum, but you can do the same thing with a type cast, remembering the type defs are unsigned words (U16) and the interation is an I32.
Hope this helps
Putnam Monroe
PutnamCertified LabVIEW Developer
Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5

LabVIEW Champion