fix for issue 107

fix wrong usage of Class.isAssignableFrom(otherClass) and replaced it with the shorter expression Class.isInstance(object)