[FIX] remove ptr aliasing warnings