charmxi: Modify redn wrapper function signature to accept void* object and then cast it