Cast using Integer instead of Java>7 (int)