Casting Subtypes

Posts   
 
    
JedC#
User
Posts: 9
Joined: 21-Apr-2010
# Posted on: 23-Apr-2010 14:40:32   

foreach (InvoiceLineEntity invoiceLine in invoice.InvoiceLineUsingInvoiceIdToInvoiceId) { AbcEntity axst = invoiceLine.AbcUsingAbcidToAbcid; AxsRadEntity Axs = (AxsRadEntity)axst; } I am wanting to cast a subtype but it keeps on giving me a error. AxsRadEntity is a subtype of AbcEntity. Why is this giving a error. Thanks

Sorry my data in my database is incorrect