I have a screen attached here and I need to know how I can convert the list to a list of Longs?
var x = SchedulerMatrixStorage.Resources.Items.Select(col => col.Id);
Where, Id is of type Object

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since your list appears to be homogenous, you can take advantage of the built-in conversion functions that are part of the .NET framework:
The
Convertstatic class provides several conversion functions, one group of which will convert objects of various types to various built-in value types, likelong. Most of these functions also have an overload that takes anobjectparameter (which I’m assuming is what your collection fundamentally contains).Note that this function will fail at runtime if the supplied object is something that can’t be converted into a
long(such as if you were to pass in, say, aForm), but judging by your screenshot this should work for you.