Casting means adding the total amount of the ledger accounts. Error of casting in sales book only affects the sales a/c, as the total of this book is undercast or overcast. Thus, it will lead to a mismatch in the debit and credit balance of trial balance.