✅ How to make Get methods work with multiple data types - C#