Is there any better method than first trying enif_get_resource to check if a resourcce is given as an argument? What would be the impact of doing it? Should I use an explicit function instead of trying to match it? - benoit