Is the function "To Polyline" available from the API?

I have not found it in the API browser, but maybe it is simply "hidden" or I haven't search properly...

I had a look but also did not find it, so I added a function ConvertToPolyline which will become available in the next release (you can test it internally next week).