Dynamic mapping is working. Cast<T> with dynamic is an issue