e per l'int :

int num = ((Integer)oggetto).intValue();