directly cast data length