Check types before rename