Doubles will not cast the way you think they will.

In fact, the scalar types shouldn't really allow "null" as a value ever.