I don't think you can. After analizing the line Lazarus always "completes" to the closest, more generic type it can find which in this case is Integer, just as with strings it always completes to generic String rather that using Short- or AnsiString.