# toVersion

@Nullable
open fun toVersion(@Nullable value: @Nullable Any): @Nullable TargetJdk(source)

Converts the given object into a `TargetJdk`.

#### Return

The version, or null if the provided value is null.

#### Since

1.5

#### Parameters

value

An object whose toString() value is to be converted. May be null.

#### Throws

java.lang.IllegalArgumentException

when the provided value cannot be converted.