transfert code from Type to ClassType