I'm trying to do the following
int num = 20;
object number = num;
int result = (int)num;
It's yelling "Invalid cast" at me because, from what the compiler says:
Unable to cast object of type 'System.Int64' to type 'System.Int32
Can you please explain why my Int32 became an Int64?