Fix windows compile

In particular, revert removal of casts from casting Vector constructors.
I took these out to save a copy in the cast of large, expensive objects,
but the explicit casts are necessary to avoid warnings.