lint redundant cast all over