Fix warnings

* Hide warnings by static casting.
The warning is valid. Not sure if there is a better way to handle
D3D11_TEXTURE2D_DESC uints vs D3D11_VIEWPORT floats.