Use reflection to assign value to a pointer