Simulate RTTI where needed.