Convert to a float by default, this will fix #23.
Added assertions