How do i convert vector<Point2f> to vector<Point>?

Hii, i want to use fillConvexPoly function in OpenCV C++ and it takes vector as argument. Is there any way to convert vector to vector?
Any help would be appreciated, Thanks.

see the sample code below

you can convert like Mat(pts_f).convertTo(pts, CV_32S);

#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"

using namespace std;
using namespace cv;

int main(int argc, char** argv)
{
    vector<vector<Point> > contours;
    Mat img = Mat::zeros(500, 500, CV_8UC1);

    circle(img, Point(250, 250), 100, Scalar(255));

    findContours(img, contours, RETR_LIST, CHAIN_APPROX_SIMPLE);

    vector<Point2f> pts_f;
    vector<Point> pts;
    Mat(contours[0]).convertTo(pts_f,CV_32F);

    Mat(pts_f).convertTo(pts, CV_32S);
    fillConvexPoly(img,  pts, Scalar(255));

    imshow("result", img);
    waitKey();

    return 0;
}

… related, once again

https://stackoverflow.com/questions/69463174/how-do-i-convert-vectorpoint2f-to-vectorpoint-in-opencv-c
and