Mark,
In the lines below an NSNumber displays a “YES” when a number should be shown. Using SD7 7A40.
use framework "Foundation"
set TheNumber1 to current application's (NSNumber's numberWithChar:100) --> (NSNumber) YES
set TheNumber2 to current application's (NSNumber's numberWithChar:100) as integer --> 100