add suppressWarnings to cast