Convert schema properties to correct type when passed as flags