# SurfaceBroker 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 SurfaceBroker
```

Represents one of several standard surface-like data types. Components which operate on or yield surface data of various kinds can use this type to avoid unnecessary casting in input or output parameters.

## Methods

- [Cast](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.surfacebroker/cast.md): (static) Cast an object to the correct surface type.
- [CastOrConvert](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.surfacebroker/castorconvert.md): (static) Cast or convert an object to a surface type if possible.
- [Convert](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.surfacebroker/convert.md): (static) Convert an object to a surface type if possible.
- [IsSurface](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.surfacebroker/issurface.md): (static) Check whether a value is a kind of surface.
- [ToBrep](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.surfacebroker/tobrep.md): (static) Try to convert a surface like type to a brep.
- [ToBreps](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.surfacebroker/tobreps.md): (static) Try to convert a collection of surface like data into Breps.
- [ToNurbsSurface](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.surfacebroker/tonurbssurface.md): (static) Try to convert surface like data into an honest to goodness NURBS surface.
- [ToSubD](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.surfacebroker/tosubd.md): (static) Try to convert surface like data into an honest to goodness [SubD](https://mcneel-apidocs-rhinocommon-7f6eb10c6967.herokuapp.com/api/rhinocommon/type/rhino.geometry.subd/).
- [ToSurface](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.surfacebroker/tosurface.md): (static) Try to convert surface like data into an honest to goodness [Surface](https://mcneel-apidocs-rhinocommon-7f6eb10c6967.herokuapp.com/api/rhinocommon/type/rhino.geometry.surface/).
