It isn't private. It is used by `HTMLInterface`'s `_cast_as` method