Fixed type casting in primToVertices.py