Add a way of typing entities