fix an explicit conversion error when building with -Werror

I noticed this when updating a project to TTTAttributedLabel 1.7.1.

We build with -Werror to force warning to be errors. Passing this NSTextCheckingTypes to something expecting an NSInteger causes an error with the right warnings turned on in Xcode.