private static Exception ErrorWithClassName(string msg, object val) { return Context.ReportRuntimeError1(msg, val.GetType().FullName); }