asObject

@NotNull
open fun asObject(): @NotNull YamlObject

Gets this element as an object

Return

object

Throws

if type is different.