Casting string results as integers

Closes #2