var secRt = sec as ISecurityRt
if(secRt != null)
{
var bDeposit = secRt.FinInfo.BuyDeposit.HasValue ? secRt.FinInfo.BuyDeposit.Value : 0;
}