And dynamic_cast would be safer here, theoretically.