With this code you can type cast a double variable value to integer.


public class TypeCastDouble {

public static void main(String[] args){

double myDouble = 420.5;
...