public static T _ <T>(this go.encoding.asn1_package.encoder target) { try { return(((go.encoding.asn1_package.encoder <T>)target).Target); } catch (NotImplementedException ex) { throw new PanicException($"interface conversion: {GetGoTypeName(target.GetType())} is not {GetGoTypeName(typeof(T))}: missing method {ex.InnerException?.Message}"); } }