open fun <X : Any> cachedAs(x: Class<X>): X
GGets the service object if already retrieved. It won't try to acquire the service object if not retrieved yet. Unlike #cached() this method let you configure the type of object you want to retrieve. This parameter must match the expected service type, and must pass the "polyglot" version of the class.
Return
the object to access the service