Is it safe to cast the osThreadId pointer to a 32-bit integer for a unique thread ID across platform - DevHeads IoT Integration Server