Remove casts that are no more needed.
Remove an override of a method with the same body in the parent (AbstractRepeater)

(cherry picked from commit a296b6c5e3e3c8235e43ddc465d5609bbbba98ae)