Handle both float and int properties.

We really need a way to check for number in general, rather than int or
float specifically.