Java - Type Casting

1
2
3
4
double d = 99.9;
  
// Type cast double to int
int i = (int) d;