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

Represents one of several standard numeric data types. Components which operate on or yield numeric 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.numberlikedata/cast.md): (static) Cast an object to the correct numeric type.
- [CastOrConvert](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.numberlikedata/castorconvert.md): (2 overloads, static) Cast or convert a collection of number like data to an array of a single type.
- [Convert](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.numberlikedata/convert.md): (static) Convert an object to a numeric type if possible. This is a potentially very expensive method to call as it will run through registered type conversions.
- [IsNumeric](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.numberlikedata/isnumeric.md): (static) Check whether a value is a kind of numeric value. This method does not take into account possible type conversions into numeric values.
- [ToComplex](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.numberlikedata/tocomplex.md): (static) Create a complex number based on a pre-existing value and a type.
- [ToDouble](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.numberlikedata/todouble.md): (static) Try and convert a value into a double.
- [UnifyTypes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.standard.numberlikedata/unifytypes.md): (2 overloads, static) Unify the types of three numberlike values.
