toInt util method
Store cursor position in atom and reapply on transform