TextBox value binding to object type

Just a little follow up on a new bug regarding this context. The checkbox works perfectly:

The numeric, however, works only if using the up and down buttons:

If I manually write a number, it will throw the following error: