dev/core#1236 fix miscasting on setContactSubType