Make sure arrays are of type float using dtype