Accept cast from integer to float

`config_cast` denies cast from `pfi::text::json::json::Integer` to float or double. It is messy as a user need to write "1.0" instead of "1" for float.
This patch accepts both types of configuration.