In C++/CX, hat pointers are contextually convertible to bool, but you can’t static_cast them to bool

3 · Raymond Chen · Dec. 5, 2019, 3:16 p.m.
Summary
C++/CX is a language extension intended to make consuming the Windows Runtime easier. It is, however, no longer the C++ projection of choice. That honor now belongs to C++/WinRT, which allows you to consume the Windows Runtime using standard-conforming C++, no language extensions required....