Added automatic floating point conversion for function that make no sence for ints