Apply conversion logic to a specific object. This function should not throw exceptions.
Namespace:
Grasshopper.Kernel.Parameters
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax bool Cast(
Object data,
out Object target
)
Function Cast (
data As Object,
<OutAttribute> ByRef target As Object
) As Boolean
Parameters
- data
- Type: SystemObject
Data to convert. - target
- Type: SystemObject
Output instance.
Return Value
Type:
BooleanTrue on success, false on failure. If False is returned, target may be null.
See Also