How to convert a DataRow to an object?

This code implements that:       

        /// Converts a DataRow object to an object type
        /// </summary>
        /// <param name="dataRow">The datarow object to convert</param>
        /// <param name="objectType">The object type to convert</param>
        public void ConvertDataRowtoObject(DataRow dataRow, Object objectType)
        {
            //--- o type é necessário para obter as propriedades do objecto
            Type t = objectType.GetType();

            //--- obtem as propriedades o objecto
            PropertyInfo[] propertiesList = t.GetProperties();

            foreach (PropertyInfo properties in propertiesList)
            {
                try
                {
                    //--- coloca o valor da datarow na propriedade correcta do objecto
                    t.InvokeMember(properties.Name, BindingFlags.SetProperty, null,
                                    objectType,
                                    new object[] { dataRow[properties.Name] });
                }
                catch (Exception ex)
                {
                    //--- Se deu erro é porque a propriedade não existe na datarow ou porque o valor é nulo
                    if (ex.ToString() != null) { }
                }
            }
        }