Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.
Casts this object to the specified type. Throws error on failure.
The target type of the cast.
The type of the object to cast.
The type to cast to.
Casts this object to the specified type. Returns null on failure.
Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.