getKType function

Get the "K.type" attribute