1 Answer
1

Okay, change to previous answer. Because there's an implicit conversion from Int64 to Double (but not vice versa), that will be the result type of the expression. So when you expect to get a boxed Int64, you actually get a boxed Double (but with a value which originally came from Int64.Parse).

Just in case that's not clear enough, let's change all the return statements such that they just return a variable. Here's the original code: