public boolean isCastOperatorLinkingEnabled(SarlCastedExpression cast) {
		final LightweightTypeReference sourceType = getStackedResolvedTypes().getReturnType(cast.getTarget());
		final LightweightTypeReference destinationType = getReferenceOwner().toLightweightTypeReference(cast.getType());
		if (sourceType.isPrimitiveVoid() || destinationType.isPrimitiveVoid()) {
			return false;
		}
		if (sourceType.isPrimitive() && destinationType.isPrimitive()) {
			return false;
		}
		return !sourceType.isSubtypeOf(destinationType.getType());
	}
public boolean isCastOperatorLinkingEnabled ( SarlCastedExpression cast ) { final LightweightTypeReference sourceType = getStackedResolvedTypes ( ) . getReturnType ( cast . getTarget ( ) ) ; final LightweightTypeReference destinationType = getReferenceOwner ( ) . toLightweightTypeReference ( cast . getType ( ) ) ; if ( sourceType . isPrimitiveVoid ( ) || destinationType . isPrimitiveVoid ( ) ) { return false ; } if ( sourceType . isPrimitive ( ) && destinationType . isPrimitive ( ) ) { return false ; } return ! sourceType . isSubtypeOf ( destinationType . getType ( ) ) ; }
Replies if the linking to the cast operator functions is enabled.

@param cast the cast operator.
@return {@code true} if the linking is enabled.