I have the following variables and I am trying to turn myInt into a double, however, I am getting a "Cannot convert from double to int' error. I noticed that I can turn a double to an int without incident, but am unsure as to why this fails. Please bear with me as I am new to programming.
double myDouble = 4;
int myInt;
myInt = myDouble;
System.out.println(myInt);
Thank you!