local x = require('ffi').cast('void*', nil) if x and x == nil then print("x is truthy and nil at the same time") end