Originally posted by Corey McGlone:
In the second example, you're actually trying to return a long from a method that can only return a byte!
In addition, when it comes to narrowing and widening conversions, I'd suggest reading this.
But even in the first example i am returning a long when it can return a float.
float is 32 bits and long is 64 bits. Then why does that compile.