Make _cast private