He was a notorious gangster. After his marriage, he dissociated himself from the gang. This sudden transforming / transformation of identity surprised all his close friends and the police.

Can either bold word be used? And does "of identity" fit in the sentence?

Thanks..