Create a UnionTypeCast operator.
Move some of the processing for casting input types from
ASTStatementLoader to new UnionTypeCast operator. 

Add Rules test for this specific case.