types.castGeopoint(format = "default", value = list(180, 90))
types.castGeopoint(format = "default", value = '180,90')
types.castGeopoint(format = "default", value = '180, -90')
types.castGeopoint(format = "array", value = list(180, 90))
types.castGeopoint(format = "array", value = '[180, -90]')
types.castGeopoint(format = "object", value = list(lon = 180, lat = 90))
types.castGeopoint(format = "object", value = '{"lon": 180, "lat": 90}')
Run the code above in your browser using DataLab