public int CompareTo(object obj) { long that = ((Long)obj).val; if (val < that) return -1; if (val > that) return 1; return 0; }