latent typing