Convert to float in case 'wait' was passed in as a string.