got rid of unnecessary classCastException in entity. This problem is
caught by the compiler.
Fixed the commentary.