"butter": miscellaneous convenience functions

to-s: convert scalar to string
to-i: convert scalar to integer