iam getting the exception through sonar in this following code.How can I resolve this.Suggest me.
@Override
public boolean validate(BaseInfo infoObject) {
boolean isValid = true;
AckTransferPaymentInfo ackTransferPaymentInfo = (AckTransferPaymentInfo) infoObject;
Dodgy - Unchecked/unconfirmed cast
Unchecked/unconfirmed cast from com.vocalink.acsw.common.validation.info.BaseInfo to com.vocalink.acsw.common.validation.info.AckTransferPaymentInfo in com.vocalink.acsw.validation.rule.T170Rule.validate(BaseInfo)
AckTransferPaymentElement payment = ackTransferPaymentInfo.getTransferPayment();
if(CreditDebitIndicator.CRDT.equals(ackTransferPaymentInfo.getCreditDebitIndicator())
&& ackTransferPaymentInfo.getOriginalPaymentAccount().getAccountName() != null