Or write a vector cast function.
template <typename Dest, typename Source>
sf::Vector2<Dest> ConvertVector(const Vector<Source>& source)
{
return sf::Vector2<Dest>(
static_cast<Dest>(source.x),
static_cast<Dest>(source.y));
}
sf::Vector2<double> doubleVec;
sf::Vector2<float> floatVec = ConvertVector<float>(doubleVec)