public long GetLong() { // KJG addition if (val <= (ulong)(System.Int64.MaxValue)) return (long) val; else throw new Exception("UInt Constant too large"); }