Wraps an object with a function call.