Workaround Xamarin compiler errors by adding explicit type parameters

Per Robert's suggestion, adding explicit type parameters made the Xamarin compiler stop complaining.