Unwraps this instance as type T, if such a cast is possible. This provides a convenient API
for unwrapping implementation calls from the interface (to avoid lots of instanceof checks everywhere).
Type Parameters:
T - the generic type
Parameters:
type - the type to unwrap it as.
Returns:
this instance, as an instanceof Type T
Throws:
com.apple.foundationdb.relational.api.exceptions.InternalErrorException - if instance types are incompatible