For-each the view group and find the view by condition, and cast to the T type.
view or null if not found
condition