debug cast semantics

- do nothing when cast to non pointer type, for example "(float)e" or
  "(int)e".