fixup! added toLong cast function