You can't cast a polygon to a polyline because they aren't the same thing. You need to extract the polygon boundary. You can do this via ITopologicalOperator.Boundary.
You can't cast a polygon to a polyline because they aren't the same thing. You need to extract the polygon boundary. You can do this via ITopologicalOperator.Boundary.