setViewModelVariableSafe

fun ViewDataBinding.setViewModelVariableSafe(value: Any?, tracer: TraceEventListener)

If the ViewDataBinding has a viewModel variable, it is set to value if its type matches with the type of value.

tracer is used to log a debug message if the type does not match.