Add toBoolean, toFunction and toNumber.