Update Type.php

Change the wrong input type
Merge pull request #381 from MLoureiro/master

Wrong type for the exception