First off, I agree with Briand and sciguy.
However... theoretically, it may be possible to do what you want. There are a couple of things which have to be true: (and may not be, I've never tried doing this.)
- The PIC ports have to be controlled by actual memory locations, not some seperate internal thing. (I think that's true.)
- The PIC port memory locations have to be in consectutive locations every compile.
Assuming that both of those are true, you can probably create a char pointer to the first port that controls your LCD, then assign that the integer you want.