I think conversion to 'px' is frequent enough to warrant its own faster function. The functions in CSSunits only takes strings. Moving this function there at some points makes sense though.