Yes, but double is a floating-point type with higher precision than float, and int is integer data. If double is converted into int, it will lead to the loss of precision.
For example, double x = 3.14; int y =(int)x; Then y=3, we call it precision loss.