Use type assertion to error out if the type isn't the right one instead of panic as before this change. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Use type assertion to error out if the type isn't the right one instead of panic as before this change. Signed-off-by: Vincent Demeester <vincent@sbr.pm>