fixed: nillable values casted to primitive types in ValueAdapter