Add an additional type check to limit