add cast and typeid demo