Transforms the given object, and returns the transformed value.
The transformed object.
The object to transform.