- x = wx_static_cast(int, box.origin.x);
- y = wx_static_cast(int, box.origin.y);
- w = wx_static_cast(int, box.size.width);
- h = wx_static_cast(int, box.size.height);
+ x = static_cast<int>(box.origin.x);
+ y = static_cast<int>(box.origin.y);
+ w = static_cast<int>(box.size.width);
+ h = static_cast<int>(box.size.height);