5.5.1.2.13 Let-coercion to and from a class or Object or Nothing

The semantics of object Let-coercion depend on the source’s value type and the destination’s declared type:

Source Value Type

Destination

Declared Type

Semantics

Any class

Any type

The result is the simple data value of the object, Let-coerced to the destination declared type.

Nothing

Any type

Runtime error 91 (Object variable or With block variable not set) is raised.

Any type except a class or Nothing

Any class or Object

Runtime error 424 (Object required) is raised.