toField

fun Any?.toField(): Field

Converts an Any? to a Field, wrapping it in the appropriate Field type.