Generic function used in the computation of Monte Carlo expectations.
expectation(obj, ...)
obj
an object
...
additional arguments
method expectation