using System; namespace HeuristicLab.Problems.ProgramSynthesis { public static class LongExtensions { public static int AsInt(this long value, int length) { return (int)Math.Abs(value % length); } } }