toInt
While the function itself is pretty easy, it's not straitforward to find a way to convert string to int with nix.