on_cast perl cast_self
on_cast python cast_self
