Explicitly cast the double object.

As per issue 106, there was a regression introduced in 1.18->1.19 where
methods found through reflection neither coerce types nor autobox
them.