Fixed casting error related to Vault. (pointed out by Storaxis)