A reporter used to generate jasmine to JUnit results

A reporter used to generate jasmine to JUnit results that can be interpreted by Jenkins
Why the explicit cast to Number here? What is the original type?