canCastToType method

bool canCastToType(
  1. ASTType type
)

Return true if this can be cast to type;

Implementation

bool canCastToType(ASTType type) => type.acceptsType(this);