Unify method for unit conversion in filters