Avoid throwing here by checking for the right type

This helps when you enable a debugger and break on all exceptions.
Push out new version