on_cast linux cast_self

