How to convert IEnumerable object to DataTable object?

This might give an idea