TryCast

TryCast(object, Type, out object)

public static bool TryCast(object obj, Type type, out object result) ;

Description

Cast the object.

Parameters

Parameter Name Description
obj The object to cast
type Casting type
result Casted value

Returns

Returns true if the cast is successful.