Integer result for the task or zero if there was no result or the result type is not Integer.
Task Class