In my latest blog post, "The correct way to do type punning in C++ - The second act," you'll learn what you can do if you need type punning but cannot afford the copy of std::bit_cast.
https://andreasfertig.com/blog/2025/04/the-correct-way-to-do-type-punning-in-cpp-the-second-act/