How do i solve this type error? - C#