getCurrentAs

inline fun <T> FormResultData.getCurrentAs(path: String): T

Returns the current value of a control as type T.

Usage: formData.getCurrentAs<String>("basic_info/name")

Throws

when the value is not a T - also when it is null and T is not nullable, as for a hidden control.