What's the proper method of converting the result from QWidget::winID(), to a HWND__*?

QWidget's WId is defined as:
Qt Code:
  1. typedef QIntegerForSizeof<void*>::Unsigned quintptr;
  2. typedef QT_PREPEND_NAMESPACE(quintptr) WId;
To copy to clipboard, switch view to plain text mode 

Currently, I'm just doing:
Qt Code:
  1. HWND handle = (HWND)this->windID();
To copy to clipboard, switch view to plain text mode 

Is that the correct method?