Implement this function if you're certain that you'll be confronted with very common casts.
For example, GH_Point has a preferred cast from Rhino.Geometry.Point3d and GH_Number
has a preferred cast from System.Double.
Grasshopper (in Grasshopper.dll)
protected virtual T PreferredCast(
Protected Overridable Function PreferredCast (
data As Object
) As T
- Type: SystemObject
Data to convert. Data is never null.
An instance of T or null if you did not handle the cast.