Use java.util.Math.toIntExact instead of long to int unsafe cast

Hi,

I’d like to suggest a new rule for Sonarqube.
This rule would recommend int foo = java.util.Math.toIntExact(longVariable) over int foo = (int) longVariable.