Convert to float in case 'wait' was passed in as a string.
Changelog re #791