reflection: convert string to boolean automatically