As detected by Eclipse, and the test case doesn't depend on the explicit casting.
Attach a file by drag & drop or click to upload