Configure project Error/Warnings settings

- Enable unnecessary cast warning
- Warning about @Override missing
- hashCode() and equals() warning