Allow to cast on Double and Integer