sam460ex: Use type cast macro instead of simple cast