Change LimitationType string int casting to use ctype_digit()