(Converting comment to short answer)
Because types do not match in source code, you need to tell the C++ compiler that they really do match, and you know what you doing, by using explicit cast:
RenderWindow::create(reinterpret_cast<sf::WindowHandle>(winId()));