on_cast protobuf check_self
