Converts an IPv4 string to a number value, which makes it appropriate for eg. persisting in a number column.