Cast float64/float32/bool value via pointer dereference. Fixes #46