also you can use something like: ``` fun String.to...
# announcements
g
also you can use something like:
Copy code
fun String.toGeoLineString(): LineString {
   val geometry = readGeometryFromString(this)
   return requireNotNull(geometry as? LineString)
}
👍 1
n
Nice 👍. With the additional use of a custom message this becomes exactly what I wanted.