[mono]bugfix:663287 - Validate the type of value against underlyingtype