How do I change a String to an int?

This seems easy enough, but for some reason, I keep getting red lines and compile errors.

String array[] = ((String)arguements[0]).split("/");

int year = (int)array[0];

The string I'm trying to use is in a String array. When I go to compile this code, I get this error:

"Cannot cast from String to int"

Thanks for any help.

[361 byte] By [zensunnia] at [2007-11-26 15:59:55]
# 1
[url http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html#parseInt(java.lang.String)]Integer.parseInt(theString)[/url]
jverda at 2007-7-8 22:21:13 > top of Java-index,Java Essentials,New To Java...