[WFLY-572] : "Cast" model nodes in AttributeDefinition validateOperation()

Convert the attribute in operation to the expected ModelType when it is possible.
Jira: https://issues.jboss.org/browse/WFLY-572
Actually, most efficient is to just declare the variable here and initialize it in the switch cases.