updateVariableByRuntimeType

inline fun <T : Any> updateVariableByRuntimeType(noinline callback: VariableUpdateCallback<T>)

Same as updateVariable, but based on runtime type that is figured out by reflection