Make MirBasicRpcChannel the lowest-common-denominator type.
Rather than dynamic_cast<>ing in multiple places, just return a MirBasicRpcChannel from ConnectionConfiguration and ensure that MirBasicRpcChannel provides all the interfaces the code needs.