Update type enforcement for numbers to handle parseFloat properly