Assert $eventArgs class type before use.

Attempt to fix issue #7
Fix object class assertion bug
Merge pull request #16 from dankempster/issue/7

Assert $eventArgs class type before use.