Is it better to cast or adapt? [C]

I have my own collision library that I’ve worked on and when I want to use it with SDL I have been writing adapter functions to convert my rectangles into SDL_Rects. Looking at the docs they have the same members, x,y,w,h. I could save myself some calls by just casting them back and forth but that feels dirty. Are there any problems with casting one rect to another?