Use TypeUtils.isInstance instead of Class.isAssignableFrom

Fix: Use TypeUtils.isInstance for type checks between objects and classes instead of Class.isAssignableFrom for better readability.