default casting rule if no specified to avoid crash