Object result for the task or nil if there was no result or the result type is not Object.
You will have to typecast to correct type for the given situation.
Task Class