cast as path