Avoiding strict typing errors