Look at how we check for the proper type and throw an exception.  

https://github.com/mono/MonoGame/blob/develop/MonoGame.Framework/Graphics/Effect/EffectParameter.cs#L284

You should be doing something similar in all these GetValueXXXX methods.