convert args to ints in getLine()

Hi Martin,
I started playing with your code and because I was using getPos not getTilePos I was getting conversion exceptions. I thought it would be an improvement to force all args to ints so it didn't matter which was used.

Cheers,
Matt