Although this comes from the previous code, the double casting here is superfluous. The same applies for the CC2520 driver.