Add AOT-safe IntervalSafe() method