set the
kind
field
ptr->kind = kind: