Fix type assignment in PopulateClass