Why introduce the complication of a runtime error (ClassCastException) when trying to fix a compile time error? As Mr777 pointed out, we have no clue what the method getCoveredQCTestCases returns...