Be more precise with the types

Signed-off-by: Stefan Marr <git@stefan-marr.de>