Casting ArcPy result object from arcpy.GetCount_management() as integer instead?

Use the following method on the Result object and you'll be able to cast as int:

.getOutput(0) will return the value at the first index position of a tool.

int(arcpy.GetCount_management(Path_Pts).getOutput(0))


GetCount returns a Result object and not an integer or a string.

To get a string you use the getOuput method of the result object and pull its first part. To see any other parts try switching the 0 for 1, 2, etc.

If you need to turn that string into an integer then use an int() function.

To learn more about the Result object and its getOutput method the Online Help should be consulted.