es3 safe recast in production builds