Can i cast to a type which class contents i can't change?

Say I want to cast to RECT, which is defined elsewhere