Fix implicit cast warning.