Casting active view

If you’re looking to set the active view check out this post.