si può anche fare così
int m = Integer.valueOf(String s).intValue();