Implementing the dynamic type mapper