Converts a string to an integer. If the string is not able to be parsed as an integer, the operation will fail to execute.