Extract values from an object and return them with some transformations.