NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

11.5.3 Narrowing value type conversions

Doing a narrowing conversion of an interface type to a value type consists of first checking that the object instance is a value of the given value type, and then copying the value out of the instance. For the conversion to succeed at runtime, the value must be a reference to an interface that was previously created by a converting a value of that value type. If the source argument is Nothing or a reference to an incompatible object, a System.InvalidCastException exception is thrown.