Removed possibility to get ClassCastException on Error occurence