Need help with two errors

If you insist on using Strings take a look at toInt function