[This is preliminary documentation and is subject to change.]
Returns the value of an object as a particular type.
| C# |
public static T ValueOf<T>( Object obj )
- T
- The type to return.
- obj (Object)
- The object value.
The supplied object value cast to the type, or the default
value of the type if the object is null.