Fixed exceptions

* Added missing type specification in Object_Creator causing
IndexOutOfBoundsException
* Added missing constraint to condition that caused ClassCastException