Avoiding type warnings, potential errors