disable magic casting to enable deterministic server side