Use new bob.core->cast