# CurveBroker class

Namespace: [Grasshopper2.Parameters.Standard](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.parameters.standard.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public static class CurveBroker
```

A utility class for dealing with various different kinds of curves. Use this class to drastically reduce the amount of type-checking, casting and conversions you have to do.

## Methods

- [Cast](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.curvebroker/cast.md): (static) Cast an object to the correct curve type.
- [CastOrConvert](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.curvebroker/castorconvert.md): (static) Cast or convert an object to a curve type if possible.
- [Convert](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.curvebroker/convert.md): (static) Convert an object to a curve type if possible.
- [IsCurve](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.curvebroker/iscurve.md): (static) Check whether a value is a kind of curve.
- [Simplify](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.curvebroker/simplify.md): (static) Simplify a curve and convert it to a more fundamental type if possible. If the curve cannot be simplified or is of an unknown type, it'll be returned wholesale.
- [ToRhinoCurve](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.curvebroker/torhinocurve.md): (static) Try to convert a curve like type to a Rhino curve. This method uses all registered curve assistants. This method make sure that for all standard conversions the curve domain of the returned value matches the domain of the argument.
- [ToRhinoCurves](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.curvebroker/torhinocurves.md): (static) Try to convert a collection of curve like data into Rhino curves.
