"Can a Byte object be cast to a double value?"
The author says no, but either his post is old or he forgot about auto-boxing.
In Java 6 it is possible to do this:
Byte b = new Byte("1");
double a = (double)b; //Boxing turns the Byte in a byte automagically. You can then cast the byte as a double
The output is:
View All Comments