public class TypeCast {
    public static void main(String[] args) {
        double previousValue = 2.5500D;
        int afterCasted = (int) previousValue;
        System.out.println(afterCasted);
        // 2
    }
}
