RedBean fork cast prewrapper - see kungfu