Speed up dynamic class cast by using ClassData* instead of string name; implement final classes that cannot be inherited; speed up class cast to final cast by comparing against classinfo directly.