I think these cast problems are ultimately something that the compiler can and should catch. And a stronger type enforcement system would be nice, but also I use C so i don't have to deal with rust's nonsense
Things like (long *)buf + 1 are easy to misread at a glance.
I tried making casts more explicit with small macros (CAST_PTR1, etc.) and adding some compile-time checks.
Curious how others deal with this—warnings, conventions, or just careful review?