simple extension to convert units