From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Your observation is correct. Since you are relying on undocumented behavior of an ill-defined conversion I would recommend adding an explicit check using the Not a Number? comparison fed into a Case Structure or Select function. In this way you can define the mapping of NaN to U8 in such a way that it will not be affected by the whims of NI.