[WFLY-572] : "Cast" model nodes in AttributeDefinition validateOperation()
COnvert the attribute in operation to the expected ModelType when it is possible.