The type of currAcc.get() is already nsIAccessible* so there is no need for a further cast to nsIAccessible*