internal static Exception DidNotExpectAs(object p0) => (Exception) new InvalidOperationException(Strings.DidNotExpectAs(p0));