Function to get the pointer of toxav instance