> I'm not going to change the structure itself
Why not?

Why couldn't you
- make the struct member a const char *
- make the struct member a std::string

If you're just going to ignore warnings by papering over the cracks with casting, you can save yourself some effort by simply turning warnings off.