When convert a numeric data type, e.g. double to int, or convert a base class to its derived class, the casts are needed.
double d = 23; int i = (int)d;
int i=23; double d = i;