type mismatch in argument 2 of `NumToString'