type casting in java
why can't we assign typecast a boolean into an int ,when internally the representation of boolean is in the form of an int variable holding 0 or 1,i.e. if u see the decompiler after compiling your program ,it stores the boolean variables in the form of integer variables,so then obviously when jvm internally is converting boolean into int,then why is not allowing the type casting into int.
e.g
boolean ui=true;
int yu=(int)ui;
so why is this an error..
