Updated AbstractDrawElement, loop item array type casting