valueOf

Utility function to get ModelType instance from given value.