Could you try to avoid using transmute? It shouldn't be necessary in this case.